package cn.lutu.lutu.service.impl;

import cn.lutu.lutu.mapper.CategoryMapper;
import cn.lutu.lutu.pojo.vo.CategoryVO;
import cn.lutu.lutu.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @date 2023-06-03
 * @author luoyinhan
 * */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    CategoryMapper categoryMapper;

    @Override
    public List<CategoryVO> getCategories() {
        return categoryMapper.selectCategories();
    }
}
